import request from "@/utils/request.js";

/**
 * 登录
 */
export function injoinLogin(params) {
    return request({
        url: `/jy-system/oauth2/token`,
        method: "post",
        params,
        noToken:true,
        loginApi:true
    });
}
/**
 * 获取登录用户信息
 */
export function getUserInfo() {
    return request({
        url: `/jy-system/user/info`,
        method: "get",
    });
}
/**
 * 获取图形验证码
 */
export function getImgCode(params) {
    return request({
        url: `/jy-system/user/getImgCode`,
        method: "get",
        params,
        noToken:true,
    });
}
/**
 * 查询账号登录失败次数
 */
export function getFailCount(params) {
    return request({
        url: `/jy-system/user/failCount`,
        method: "get",
        params,
        noToken:true,
    });
}